package com.chenglu.android.search.mvp.contract;


import com.chenglu.android.common.base.BaseView;
import com.chenglu.android.index.bean.IndexRecomBean;
import com.chenglu.android.search.bean.SearchBean;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;

/**
 * @author: lyj
 * @Created by Copyright 2023/3/2 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 * @Description contract
 */
public interface SearchContract {

    /**
     *
     * @description model
     *
     */

    public interface SearchModel{

        Observable<IndexRecomBean> getSearchPage(Map<String, String> map);

    }


    /**
     *
     * @description view
     *
     */

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void dismissLoading();

        @Override
        void onEmpty(Object tag);

        @Override
        void onError(String errMessage);

        void getSearchPage(IndexRecomBean bean);
    }

    /**
     *
     * @description presenter
     *
     */

    interface SearchPresenter {

        void getSearchPage(Map<String, String> map);
    }
}